package com.dao.luo;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

import com.entity.Transfer;

@Repository
public interface TransferDao {
	
	public void insert(Transfer transfer);
	
	public void update(Transfer transfer);
	
	public void delete(@Param("tid") Integer tid);
	
	public Transfer load(@Param("tid") Integer tid);
	public List<Transfer> findAll();

	public List<Transfer> findByAid(@Param("aid") Integer aid);

	public Double in(@Param("aid") Integer aid);

	public Double out(@Param("aid") Integer aid);
	
}
